<%@ taglib prefix="s" uri="http://stripes.sourceforge.net/stripes.tld" %>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<%@ taglib prefix="f" uri="http://java.sun.com/jsp/jstl/fmt" %>
<s:layout-component name="login">
    <%--<s:form beanclass="com.pokemon.web.LoginActionBean">--%>
    <%--<s:form action="<c:url value='j_spring_security_check' />" method='POST'>
        <table id="login-table">
            <tr>
                <th><s:label for="b1" name="j_username"><f:message key="login.username"/></s:label></th>
                <td><s:text id="b1" name="j_username"/></td>
                <th><s:label for="b2" name="j_password"><f:message key="login.password"/></s:label></th>
                <td><s:password id="b2" name="j_password"/></td>
                <th><s:submit name="submit"><f:message key="login.submit"/></s:submit></th>
            </tr>
        </table>
    </s:form>--%>
    
    <c:if test="${not empty error}">
		<div class="errorblock">
			Your login attempt was not successful, try again.<br /> Caused :
			${sessionScope["SPRING_SECURITY_LAST_EXCEPTION"].message}
		</div>
	</c:if>
 
	<form action="<c:url value='/j_spring_security_check' />" method='POST'>
 
		<table id="login-table">
                    <tr>
			<th><f:message key="login.username"/></th>
			<td><input type='text' name='j_username' value=''></td>
                        <th><f:message key="login.password"/></th>
                        <td><input type='password' name='j_password' /></td>
			<th><input name="submit" type="submit" value="<f:message key="login.submit"/>"/></th>
                    </tr>
		</table>
 
	</form>
    
</s:layout-component>